<#-- 用户信息页面 -->
<#include "/WEB-INF/default/fragment/nev.ftl">
    <div class="container">
        <div id="main">
            <div align="center"><img src="./assets/image/logo.png" alt=""></div>
        </div>
        <div class="invit"></div>
        <form  method="post">
            <div class="team_top_btn">
                <button type="submit" class="change btn btn-warning">修改</button>
            </div>
          <span class="clearfix"></span>
            <fieldset>
              <div class="myinfo">
                <ul class="clearfix">
                  
                </ul>
              </div>
            </fieldset>
        </form>
    </div>
    <#-- 
    <script id="index_info_item" type="text/tms-template">
        <li class="fl">
          <div class="input-group input-group-sm">
            <span class="input-group-addon" id="sizing-addon3">{{name}}</span>
            <input type="text" class="form-control short" value="{{dat}}"  disabled>
          </div>
        </li>
    </script>
    <script type="text/javascript">
      $(function(){
        var username = $('.username').html();
        if (username==null) {
          window.location.href='${request.contextPath}/index.action';
        }
        $.getJSON('${request.contextPath}/my-post.action', {}, function(json, textStatus) {
          //optional stuff to do after success
            var ht = $('#index_info_item').html();
            for(var i in json){
              var va = json[i];
              $('.myinfo ul').append(muban(va,i,ht));
            }
        });
        $('button.change').one('click', function(event) {
          $(this).removeClass('change btn-warning').addClass('btn-success save').html('保存');
          $('input').removeAttr("disabled");
          return false;
        });
        
        function muban(va,i,ht){
          var str = ht;
          str = str.replace('{{name}}', i);
          str = str.replace('{{dat}}', va);
          return str;
        }
      });
    </script> -->
<#include "/WEB-INF/default/fragment/footer.ftl">